package com.csy.user.entity.system.service.impl;

import com.csy.user.entity.system.domain.SysLifepay;
import com.csy.user.entity.system.mapper.SysLifepayMapper;
import com.csy.user.entity.system.service.SysLifepayService;

import io.seata.spring.annotation.GlobalTransactional;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: sunxx
 * @Date: 2024/4/23 - 04 - 23 - 15:55
 * @Description: com.sxx.ajcommunity.system.service.impl
 * @version: 1.0
 */
@Service
public class SysLifepayServiceImpl implements SysLifepayService {

    @Resource
    private SysLifepayMapper sysLifepayMapper;

    @Override
    public List<SysLifepay> selectLifepayList(SysLifepay sysLifepay) {
        return sysLifepayMapper.selectLifepayList(sysLifepay);
    }

    @Override
    @GlobalTransactional
    public int insertLifepay(SysLifepay sysLifepay) {
        return sysLifepayMapper.insertLifepay(sysLifepay);
    }


    /**
     * 修改用户基本信息
     */
    @Override
    @GlobalTransactional
    public int updateLifepay(SysLifepay sysLifepay) {
        return sysLifepayMapper.updateLifepay(sysLifepay);
    }
}
